﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;

namespace ProjectAsteroids
{
    class Inimigo
    {
        first_project.Player player;


        public Inimigo(first_project.Player player)
        {
            this.player = player;
        }


        /*public void testShotCollision()
        {
            List<Shot> removedShots = new List<Shot>();

            foreach (first_project.Shot shot in player.ShotList)
            {
                if (asteroid.CollisionRectangle.Intersects(shot.CollisionRectangle))
                {
                    removedShots.Add(shot);
                    if (asteroid.processShotColision())
                    {
                        asteroidRemoveList.Add(asteroid);
                    }
                    else
                    {
                        asteroidAddList.Add(new Asteroid(Window, Content.Load<Texture2D>("images/asteroidImg"), asteroid.Position, asteroid.Life));
                    }
                }
            }
            foreach (Shot shot in removedShots)
            {
                player1.ShotList.Remove(shot);
            }
        }*/
    }
}
